package ltd.newbee.mall.dao;

import ltd.newbee.mall.entity.Film;
import ltd.newbee.mall.entity.IndexConfig;
import ltd.newbee.mall.util.PageQueryUtil;

import java.util.List;

public interface FilmMapper {
    int deleteByPrimaryKey(Integer filmId);

    int insert(Film record);

    int insertSelective(Film record);

    Film selectByPrimaryKey(Integer filmId);

    int updateByPrimaryKeySelective(Film record);

    int updateByPrimaryKey(Film record);

    List<Film> selects(List<Long> goodsIds);

    List<IndexConfig> findIndexConfigsByTypeAndNum(int configType, int number);

    List<Film> findFilmsList(PageQueryUtil pageUtil);

    int getTotalFilm(PageQueryUtil pageUtil);

    int batchUpdateSellStatus(Long[] ids, int sellStatus);

    List<Film> selectAll();

}